package com.groupbuying.storeinternal.connector;

import com.groupbuying.storeinternal.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author zmlmagic
 * @date 2019/4/19 9:09 AM
 * @company 蒙泰互联网公司
 * @des 备注说明
 **/

@Service
@FeignClient(name = "service-sysconfig")
public interface SysconfigFeign {
    @RequestMapping(value = "/opexRule/getRule", method = RequestMethod.GET)
    Map getStoreOpexRule(@RequestParam Map<String, Object> params);

    @RequestMapping(value = "/api/segment/get/leaf", method = RequestMethod.GET)
    String getUuidByLeaf();

    @RequestMapping(value = "/common/store/getAcountId", method = RequestMethod.GET)
    String getStoreAcountByLeaf();

    @RequestMapping(value = "/common/store/getProviderId", method = RequestMethod.GET)
    String getStoreProviderByLeaf();

    @RequestMapping(value = "/o2okind/list", method = RequestMethod.GET)
    R getO2OKindList(@RequestParam Map<String, Object> params);

    @RequestMapping(value = "/area/list", method = RequestMethod.GET)
    R getAreaList(@RequestParam Map<String, Object> params);

    // 银盛-获取企业类型
    @RequestMapping(value = "/keyinfo/companyType", method = RequestMethod.GET)
    R getKeyCompanyType(@RequestParam Map<String, Object> params);

    // 银盛-获取企业所属行业
    @RequestMapping(value = "/keyinfo/companyKind", method = RequestMethod.GET)
    R getKeyCompanyKind(@RequestParam Map<String, Object> params);

    // 银盛-获取银行账户类型
    @RequestMapping(value = "/keyinfo/bankAccountType", method = RequestMethod.GET)
    R getBankAccountType(@RequestParam Map<String, Object> params);

    // 银盛-获取银行卡类型
    @RequestMapping(value = "/keyinfo/bankCardType", method = RequestMethod.GET)
    R getBankCardType(@RequestParam Map<String, Object> params);

    @RequestMapping(value = "/common/store/getCounterNoByLeaf", method = RequestMethod.GET)
    String getCounterNoByLeaf();

    @RequestMapping(value = "/common/store/getStoreNoByLeaf", method = RequestMethod.GET)
    String getStoreNoByLeaf();

    @RequestMapping(value = "/common/store/getPromotiondefineNo", method = RequestMethod.GET)
    String getPromotiondefineNo();

    //够样优店-银盛支付-环境配置参数
    @RequestMapping(value = "/businessPram/ys", method = RequestMethod.GET)
    String getYSBusiness();
    // 提现 - 提现id
    @RequestMapping(value = "/common/settle/getWithdrawalId", method = RequestMethod.GET)
    String getWithdrawalId();
}
